package org.cmg.study.spring.service.impl;

import org.cmg.study.spring.entity.User;
import org.cmg.study.spring.service.IUserService;
import org.springframework.stereotype.Service;

/**
 * @author CMG
 * @version 1.0
 * @cLassName UserServiceImpl
 * @description
 * @date 2021/9/3 16:31
 **/
@Service
public class UserServiceImpl implements IUserService {
    @Override
    public boolean login(User user) {
        if("xg".equals(user.getName()) && "12345".equals(user.getPwd())){
            return true;
        }
        return false;
    }

    @Override
    public boolean register(User user) {
        if("xg".equals(user.getName()) && "12345".equals(user.getPwd())){
            return true;
        }
        return false;
    }
}
